import request from '@/utils/request.js'

export const userRegisterService = (formModel) => {
  request.post('/register', formModel)
}

export const userLoginService = (formModel) => {
  return request.post('/login', formModel)
}

// 获取用户信息的方法
export const userGetInfoService = () => {
  return request.get('/getUserInfo')
}

export const userGetValidateCodeService = () => {
  return request.get('/generateValidateCode')
}
